package com.dd.cloud.user.mapper.chknowl;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.dd.cloud.user.entity.chknowl.ChknowlCurr;
import com.dd.cloud.user.entity.chknowl.ChknowlCurrCategory;
import com.dd.cloud.user.req.chknowl.CurrListPageReq;
import com.dd.cloud.user.res.chknowl.ChUserSearchListRes;
import com.dd.cloud.user.res.chknowl.ChknowlCurrCategoryRes;
import com.dd.cloud.user.res.chknowl.ChknowlCurrPageRes;
import com.dd.cloud.user.res.chknowl.ChknowlCurrRes;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 通方表 Mapper 接口
 * </p>
 *
 * @author czg
 * @since 2022-07-04
 */
public interface ChknowlCurrMapper extends BaseMapper<ChknowlCurr> {
    //关键字搜索经验方
    ChUserSearchListRes getChknowlCurrByKeyword(String keyword);

    /**
     * 分页获取经验方
     * @param page
     * @param req
     * @return
     */
    Page<ChknowlCurrPageRes> getChknowCurrPage(@Param("page") Page page,
                                               @Param("req") CurrListPageReq req);

    /**
     * 查询常用方
     * @return
     */
    List<ChknowlCurr> queryOftenCurrList();

    /**
     * 查询分类
     * @return
     * @param
     */
    List<ChknowlCurrRes> queryCategoryList();
}
